package com.weiqiao.mall.repository;

import org.bson.Document;
import org.bson.conversions.Bson;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface IReceiptRepository {

    /**
     * 分页查询余额提现
     *
     * @param company_id
     * @param filter
     * @param filterSort
     * @param pageable
     * @return
     */

    List<String> findReceipt(int company_id, Bson filter, Bson filterSort, Pageable pageable);

    /**
     * 通过编号查询单个提现详情
     *
     * @param company_id
     * @param filter
     * @return
     */
    String queryOneReceiptById(int company_id, Bson filter);

    /**
     * 修改多个
     *
     * @param company_id
     * @param filter
     * @param doc
     * @return
     */
    boolean updateRecepits(int company_id, Bson filter, Document doc);

    /**
     * 通过多个编号查询提现详情
     *
     * @param company_id
     * @param filter
     * @return
     */
    List<String> queryOneReceiptByIds(int company_id, Bson filter);

    /**
     * 修改单个
     *
     * @param company_id
     * @param filter
     * @param json
     * @return
     */
    boolean updateOne(int company_id, Bson filter, String json);

    /**
     * 查询所有提现详情
     *
     * @param company_id
     * @param filter
     * @return
     */
    List<String> findAll(int company_id, Bson filter);
}
